package org.apache.servicecomb.samples.practise.houserush.realestate.api;

import org.apache.servicecomb.samples.practise.houserush.realestate.entity.House;
import org.apache.servicecomb.samples.practise.houserush.realestate.entity.Realestate;

import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import java.util.Date;
import java.util.List;

public interface RealestateApi {
    public Date testProvider();

    public Realestate createRealesate(Realestate realestate);

    public Realestate findRealestate(Integer id);

    List<Realestate> indexRealestates();

    Realestate updateRealestate(int id, Realestate realestate);

    void removeRealestate(int id);

    //    GET 根据楼盘查询未锁定房源 realestates/findTreeRealestate/{id}
    Realestate findByRealestateId(Integer id);


//    PUT 解锁房源 houses/releaseLockingStatesForHouses
}
